package com.itheima.edu.info.manager.entry;

import com.itheima.edu.info.manager.controller.StudentController;
import com.itheima.edu.info.manager.controller.TeacherCaotroller;

import java.util.Scanner;

public class SystemEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StudentController studentController = new StudentController();
        TeacherCaotroller teacherCaotroller = new TeacherCaotroller();
        while (true){
            System.out.println("-------欢迎来到黑马管理系统-----");
            System.out.println("请输入您的选择：1 学生管理系统 2 老师管理系统 3 退出系统");
            String choice = sc.next();
            switch (choice){
                case "1":
                    studentController.start();
                    break;
                case "2":
                    teacherCaotroller.Teacherstart();
                case "3":
                    System.out.println("感谢你的使用");
                    System.exit(0);
                    break;
                default:
                    System.out.println("你的输入有误，请重新输入");
                    break;
            }
        }
    }
}
